package com.xxx.client.registry;

import com.xxx.registry.ServerInfo;
import io.netty.channel.ChannelFuture;

/**
 * Created by louisyuu on 2020/4/30 上午10:13
 */
public class ChannelInfo {
    private ServerInfo serverInfo;


    private Object clientProxy;


    private ChannelFuture channelFuture;


    private String targetMethodName;


    public ChannelInfo() {
    }

    public ChannelInfo(ServerInfo serverInfo, Object clientProxy, ChannelFuture ChannelFuture) {
        this.serverInfo = serverInfo;
        this.clientProxy = clientProxy;
        this.channelFuture = ChannelFuture;
    }

    public ServerInfo getServerInfo() {
        return serverInfo;
    }

    public void setServerInfo(ServerInfo serverInfo) {
        this.serverInfo = serverInfo;
    }

    public Object getClientProxy() {
        return clientProxy;
    }

    public void setClientProxy(Object clientProxy) {
        this.clientProxy = clientProxy;
    }


    public ChannelFuture getChannelFuture() {
        return channelFuture;
    }

    public void setChannelFuture(ChannelFuture channelFuture) {
        this.channelFuture = channelFuture;
    }


    @Override
    public String toString() {
        return "ChannelInfo{" +
                "serverInfo=" + serverInfo +
                ", clientProxy=" + clientProxy +
                ", channelFuture=" + channelFuture +
                ", targetMethodName='" + targetMethodName + '\'' +
                '}';
    }
}
